<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script>
        Object.prototype.array = function()
        {
	  var array   = [],
	  length      = this.length || 0;

	  for( var i = 0; i < length; ++i )
	      array[i] = this[i];

	  return array;
        }
        
        window.onload = function()
        {
	  var elms = document.getElementById("table1").getElementsByTagName("*");

	  alert(elms.array());

	  obj = {
	      val : "one"
	  }

	  document.getElementById("table1").watch("innerHTML", function()
	  {
	      alert("val changed!");
	  });

	  document.getElementById("table1").innerHTML = "Testing";
        }
    </script>
  </head>
  <body>
      <table id="table1">
	<tr>
	    
	</tr>
      </table>
  </body>
</html>
